﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Prop
{
    class Drink : Item
    {
        private bool isAlc;

        public Drink(int id, string name,int price, int numInStock, bool isAlc)
            :base(id,name,price,numInStock)
        {
            
            this.isAlc = isAlc;
        }
        public bool IsAlc
        {
            get { return isAlc; }
            set
            {
                this.isAlc = value;
            }
        }

        public override String getInfo()
        {
            string alc;
            if (isAlc)
            {
                alc = "Contains Alcohol";
            }
            else
            {
                alc = "Alcohol Free";
            }
            return base.getInfo() +" "+ alc; 
        }

    }
    
}
